import type { RouteRecordRaw } from 'vue-router';
export const staticRoutes: Array<RouteRecordRaw> = [
  {
    path: '/home', component: () => import('../views/home/index.vue'),//首页
    meta: {
      index:0,
      isHidden: true,
    },
  },
  {
    name: 'ProductList',
    path: '/productList',
    component: () => import("../views/home/components/productList/index.vue")
  },
  {
    path: "/category",
    component: () => import("../views/sort/index.vue"),//分类
    meta: {
      index:1,
      isHidden: true,
    }
  },
  {
    name: 'Detail',
    path: '/categoryList',
    component: () => import("../views/sort/components/detail/index.vue"),//分类-详情
  },
  {
    name: 'Homeitem',
    path: '/Homeitem',
    component: () => import("../components/homeitem/index.vue"),//分类-详情
  },
  {
    path: "/valuebuy", component: () => import("../views/worthBuying/index.vue"),
    meta: {
      index:2,
      isHidden: true,
    }//值得买
  },
  {
    path: "/cart", component: () => import("../views/ShopCart/index.vue"),//购物车
    meta: {
      index:3,
      isHidden: true,
    }
  },
  {
    path: "/personal", component: () => import("../views/center/index.vue"),//个人
    meta: {
      index:4,
      isHidden: true,
    }
  },
  {
    path: "/login",component: () => import("../views/login/index.vue"),//登录
  },
  {
    path: '/', redirect: '/home'
  },
  {
    path: "/search", component: () => import("../views/search/index.vue"),//搜索
  },
  {
    path: "/pay", component: () => import("../views/pay/index.vue"), // 支付
  },
  {
    path: "/address", 
    component: () => import("../views/address/index.vue"),
  },
  {
    name: "AddressDetail",
    path: "/address/detail",
    component: () => import("../views/address/components/detail/index.vue")
  }
]